/*
 * test_claplan_parser.cc
 *
 *  Created on: 30 Oct 2013
 *      Author: Tom Vercauteren
 */
#include <iostream>
#include <fstream>
#include <string>

#include "claplan_header.h"
#include "claplan_parser.h"
#include "claplan_data.h"

using namespace std;

int main(int argc, char **argv)
{
	string f = "claplan.cl";
	ifstream input(f.c_str());
	if (!input.is_open())
	{
		cerr << "unable to open file : " << f << endl;
		return -1;
	}
	ClaplanParser parser;
	ClaplanData data;
	parser.setClaplanData(&data);
	parser.parse(input);

	input.close();
	if (input.is_open())
	{
		cerr << "unable to close file : " << f << endl;
		return -1;
	}
	cout << data << endl;

	return 0;
}

